<!-- START OF CONTENT -->
<div class="contentMain">
	<div class="grayBox">
		<div class="grayBoxMain">
			<div class="grayTop">
				<div class="bg"><?=$session->flash()?></div>
			</div>
			<h2 class="marginTop10">Register</h2>
			<?
				echo $this->Form->create('User', array('action' => 'register'));
			?>
			<ul class="quList">
				<li id="name">
					<?
						echo('<div style="width:120px; float:left; font-weight:bold">Name </div>');
						echo $this->Form->input('name', array('label'=>false,'div'=>false));
						if(isset($session->validationErrors) && !isset($session->validationErrors['User']['name']))
						{
							echo('<span class="success"></span>');
						}
					?>
				</li>
				
				<li id="email">
					<?
						echo('<div style="width:120px; float:left; font-weight:bold">Email </div>');
						echo $this->Form->input('username', array('label'=>false,'div'=>false)); 
						if(isset($session->validationErrors) && !isset($session->validationErrors['User']['username']))
						{
							echo('<span class="success"></span>');
						}
					?>
					<!--<span class="success"></span>-->
				</li>
				
				<li id="password">
					<?
						echo('<div style="width:120px; float:left; font-weight:bold">Password </div>');
						echo $this->Form->input('password', array('type'=>'password','label'=>false,'div'=>false)); 
						if(isset($session->validationErrors) && isset($session->validationErrors['User']['password_confirm']))
						{
							echo('<div class="error-message">'.$session->validationErrors['User']['password_confirm'].'</div>');
						}
					?>
				</li>
				
				<li id="password_confirm">
					<?
						echo('<div style="width:120px; float:left; font-weight:bold">Confirm Password </div>');
						echo $this->Form->input('password_confirm', array('type'=>'password','label'=>false,'div'=>false));
					?>
				</li>
			</ul>
			
			<?
				echo('<div style="width:120px; float:left; font-weight:bold">Validation </div>');
				echo $this->Recaptcha->show('white');
			?>
			<div style="margin-left: 120px;">
				<?
					echo $this->Recaptcha->error();
				?>
			</div>
			<br>
			<div class="btnYellow01 marginRight10" style="float:left">
				<input class="btn cursor_pointer" type="submit" value="Register">
			</div>
			<span class="fontSmall">
				By clicking on register, I agree to the 
				<?=$html->link('Terms of Use','/pages/tnc', array('target'=>'_blank'));?>
			</span>	
			</form>
		</div>
	</div>
</div>
<!-- END OF CONTENT -->